import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home.vue'

Vue.use(Router)

export default new Router({
  linkActiveClass: 'active',
  routes: [
    {
      path: '/', // 首页
      name: 'Home',
      component: Home
    },
    {
      path: '/Journalism', // 新闻资讯页
      name: 'Journalism',
      component: () => import( '../views/Journalism.vue')
    },
    {
      path: '/jobList', // 职位列表页
      name: 'jobList',
      component: () => import( '../views/JobList.vue')
    },
    {
      path: '/login', // 登录页
      name: 'Login',
      component: () => import( '../views/login/Login.vue')
    },
    {
      path: '/register', // 注册页
      name: 'Register',
      component: () => import( '../views/login/Register.vue')
    },
    {
      path: '/updataPassword', // 修改密码页
      name: 'UpdataPassword',
      component: () => import( '../views/login/UpdataPassword.vue')
    },
    {
      path: '/positiondetails', // 职位详情页
      name: 'PositionDetails',
      component: () => import( '../views/PositionDetails.vue')
    },
    {
      path: '/journalismManagement', // 管理员新闻管理页
      name: 'journalismManagement',
      component: () => import( '../views/backstageManagement/journalismManagement.vue')
    },
    {
      path: '/accountManagement', // 管理员用户管理页
      name: 'accountManagement',
      component: () => import( '../views/backstageManagement/accountManagement.vue')
    },
    {
      path: '/lookResume', // 用户查看简历页
      name: 'lookResume',
      component: () => import( '../views/userManagement/lookResume.vue')
    },
    {
      path: '/uploadResume', // 用户上传简历页
      name: 'uploadResume',
      component: () => import( '../views/userManagement/uploadResume.vue')
    },
    {
      path: '/resumeManagement', // 企业简历管理页
      name: 'resumeManagement',
      component: () => import( '../views/companyManagement/resumeManagement.vue')
    },
    {
      path: '/postJobInfo', // 企业招聘管理页
      name: 'postJobInfo',
      component: () => import( '../views/companyManagement/postJobInfo.vue')
    }
  ]
})
